package o;

import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import com.huawei.gamebox.plugin.gameservice.bean.GameInfo;

public class eyw extends eyu {
    public static final String APIMETHOD = "client.gs.getGamePlayerInfo";
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String accountId_;
    private String packageName_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String subAccountId_;

    public eyw(GameInfo gameInfo) {
        super(gameInfo);
    }

    public static eyw ˎ(GameInfo gameInfo, ccm o_ccm, String str, String str2) {
        eyw o_eyw = new eyw(gameInfo);
        o_eyw.setMethod_(APIMETHOD);
        o_eyw.targetServer = "jxs.url";
        o_eyw.setStoreApi("gbClientApi");
        try {
            JsonBean ˏ = epk.ˏ();
            if (o_ccm != null) {
                ˏ.ˋ(o_ccm.ॱ());
                ˏ.ˊ(o_ccm.ˏ());
                ˏ.ॱ(o_ccm.ˎ());
                ˏ.ˎ(o_ccm.ʽ());
            }
            o_eyw.ॱ(ˏ);
            o_eyw.ˊ(str);
            o_eyw.ˋ(str2);
            o_eyw.ॱ(gameInfo.getPackageName());
        } catch (Exception e) {
            Logger.e(cvs.TAG, "bodyInfo to json exception");
        }
        return o_eyw;
    }

    public void ˊ(String str) {
        this.accountId_ = str;
    }

    public void ˋ(String str) {
        this.subAccountId_ = str;
    }

    public void ॱ(String str) {
        this.packageName_ = str;
    }
}
